<?php
	$form = new sfGuardUserForm();
?>
<h1 class="heading">Visualizar Sf guard user</h1>

<table class="form">
  <tbody>
  <tr><th colspan="2" class="title">Detalhes Sf guard user</th></tr>
    <tr>
      <th><?php echo $form['id']->renderLabel() ?>:</th>
      <td><?php echo $sf_guard_user->getId() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['username']->renderLabel() ?>:</th>
      <td><?php echo $sf_guard_user->getUsername() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['algorithm']->renderLabel() ?>:</th>
      <td><?php echo $sf_guard_user->getAlgorithm() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['salt']->renderLabel() ?>:</th>
      <td><?php echo $sf_guard_user->getSalt() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['password']->renderLabel() ?>:</th>
      <td><?php echo $sf_guard_user->getPassword() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['is_active']->renderLabel() ?>:</th>
      <td><?php echo $sf_guard_user->getIsActive() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['is_super_admin']->renderLabel() ?>:</th>
      <td><?php echo $sf_guard_user->getIsSuperAdmin() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['last_login']->renderLabel() ?>:</th>
      <td><?php echo $sf_guard_user->getLastLogin() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['created_at']->renderLabel() ?>:</th>
      <td><?php echo $sf_guard_user->getCreatedAt() ?></td>
    </tr>
    <tr>
      <th><?php echo $form['updated_at']->renderLabel() ?>:</th>
      <td><?php echo $sf_guard_user->getUpdatedAt() ?></td>
    </tr>
  </tbody>
</table>

<hr />

<?php
	comandos_form(
		link_to(
			':: Listar ::',
			'usuario/list',
			array('class' => 'botao')
		),
		link_to(
			':: Editar ::',
			'usuario/edit?id='.$sf_guard_user->getId(),
			array('class' => 'botao')
		)
	);
?>